package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-09-02
 * Time: 17:19
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.display();

        myArrayList.remove(2);
        myArrayList.display();

        myArrayList.add(1,99);
        myArrayList.display();

        System.out.println(myArrayList.get(3));
        System.out.println(myArrayList.indexOf(99));

    }
}
